home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / lib / hal / debian-setup-keyboard next >
Encoding:
Text File  |  2008-10-26  |  589 b   |  24 lines

  1. #!/bin/sh
  2. #
  3. # borrowed from Fedora and modified to work with console-setup
  4. #
  5.  
  6. [ -x /usr/bin/hal-set-property ] || exit 0
  7.  
  8. . /etc/default/console-setup > /dev/null 2>&1 || exit 0
  9.  
  10. hal_set () {
  11.     if [ -n "$2" ]; then
  12.     /usr/bin/hal-set-property --direct --udi "$UDI" --key input.xkb.$1 --string "$2"
  13.     else
  14.     /usr/bin/hal-set-property --direct --udi "$UDI" --key input.xkb.$1 --remove
  15.     fi
  16. }
  17.  
  18. hal_set model $XKBMODEL
  19. hal_set layout $XKBLAYOUT
  20. hal_set variant $XKBVARIANT
  21. hal_set options $XKBOPTIONS
  22. # hardcoded here for clarity, although the driver already forces it
  23. hal_set rules evdev
  24.